﻿using QMERP.Domain.Dtos;

namespace QMERP.Application.Services
{
    public interface ITransferOrderService
    {
        /// <summary>
        /// 调拨单窗体
        /// </summary>
        /// <returns></returns>
        Task<PageResponse<TransferOrderResponse>> Query(PageRequest<TransferOrderRequest> request);
        /// <summary>
        /// 获取id的调拨单详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<TransferOrderResponse> Detail(long id);
        /// <summary>
        /// 调拨单保存
        /// </summary>
        /// <param name="request"></param>
        /// <param name="isCheck"></param>
        /// <returns></returns>
        Task<TransferOrderResponse> Save(TransferOrderSaveRequest request, bool isCheck = false);
        /// <summary>
        /// 调拨单审核
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task Check(long[] ids);
        /// <summary>
        /// 调拨单弃审
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task UnCheck(long[] ids);
        // <summary>
        /// 调拨单取消
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task Cancel(long[] ids);
        /// <summary>
        /// 获取调拨单主要信息列表
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task<List<TransferOrderMainInfoResponse>> GetTransferOrderMainInfos(PageRequest<TransferOrderRequest> request);
    }
}
